import request from '@/utils/request'

export function getAccountRechargeByPage(query) {
  return request({
    url: '/mall/api/distributor/finance/account-recharge',
    method: 'get',
    params: query
  })
}

export function downloadAccountRecharge() {
  return request({
    url: '/mall/api/distributor/finance/account-recharge/download',
    method: 'post',
    responseType: 'blob',
    timeout: 30000
  })
}

export function getAccountTransactionByPage(query) {
  return request({
    url: '/mall/api/distributor/finance/account-transaction',
    method: 'get',
    params: query
  })
}

export function downloadAccountTransaction() {
  return request({
    url: '/mall/api/distributor/finance/account-transaction/download',
    method: 'post',
    responseType: 'blob',
    timeout: 30000
  })
}
